package com.kws.merchant.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kws.merchant.domain.OperationPollingDevice;

import java.util.List;

/**
 * 运维-巡检设备关联表(OperationPollingDevice)表服务接口
 *
 * @author yxy
 * @since 2024-10-28 11:32:39
 */
public interface OperationPollingDeviceService extends IService<OperationPollingDevice> {

    /**
     * 分页查询列表
     */
    Page<OperationPollingDevice> pageList(OperationPollingDevice operationPollingDevice);

    /**
     * 根据巡检id删除巡检设备
     * @param pollingId
     * @return
     */
    boolean deleteByPollingId(Long pollingId);

    /**
     * 根据巡检id查询巡检设备
     * @return
     * @param pollingId
     */
    List<OperationPollingDevice> listByPollingId(Long pollingId);

    /**
     * 修改巡检记录
     * @param pollingDevices
     */
    void updatePollingDevice(List<OperationPollingDevice> pollingDevices);
}
